﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZaidimasSandelys.Models.Interfaces;

namespace ZaidimasSandelys.Models.Classes
{
    /// <summary>
    /// Iš DB nuskaitytas elementas
    /// </summary>
    public class GameElement : IGameElement
    {
        /// <summary>
        /// Kairio viršutinio kampo koordinatės: X ir Y
        /// </summary>
        public short X { get; private set; }
        public short Y { get; private set; }

        /// <summary>
        /// Elemento tipas <see cref="VisualType"/>
        /// </summary>
        public short ImgTypeCode { get; private set; }

        public GameElement(short x, short y, short imgType)
        {
            this.X = x;
            this.Y = y;
            this.ImgTypeCode = imgType;
        }
    }
}
